<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="help">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_vote('question')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>
						<!--{if $action == 'add'}-->
							Acidionar questão 
						<!--{else}-->
							Editar questão
						<!--{/if}-->
					</h2>
					<ul class="filter">
						<li>
						</li>
						<li>
							<a href="question.php?action=list-is_show-1">Listar questões a serem respondidas</a>
							<a href="question.php">Listar todas as questões</a>
						</li>
					</ul>
				</div>
                <div class="sect">
					<form method="post" action="?action=${$action=='add' ? 'add_submit' : 'edit_submit'}">
						<div class="field">
                            <label>Titulo</label>
                            <input type="text" size="30" name="question[title]" class="f-input" value="{$question['title']}"/>
                            <span class="inputtip">máximo de 1000 caracteres</span>
                        </div>
						<div class="field">
                            <label>Tipo</label>
                            <input type="radio" name="question[type]" value="radio" <!--{if $question['type'] != 'checkbox'}-->checked<!--{/if}-->/>Unica escolha
                            <input type="radio" name="question[type]" value="checkbox" <!--{if $question['type'] == 'checkbox'}-->checked<!--{/if}-->/>Multipla escolha
                        </div>
						<div class="field">
                            <label>Mostrar ou não</label>
                            <input type="radio" name="question[is_show]" value="1" <!--{if $question['is_show']}-->checked<!--{/if}-->/>Mostrar
                            <input type="radio" name="question[is_show]" value="0" <!--{if !$question['is_show']}-->checked<!--{/if}-->/>Esconder
                        </div>
						<div class="field">
                            <label>Sort</label>
                            <input type="text" size="30" name="question[order]" class="number" value="{$question['order']}"/>
                        </div>
                        <div class="act">
							<input type="hidden" name="question[id]" value="{$question['id']}"/>
                            <input type="submit" value="<!--{if $action=='add'}-->Adicionar<!--{else}-->Editar<!--{/if}-->" name="commit" class="formbutton"/>
                        </div>
					</form>
				</div>
			</div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
